<?php use_helper('I18N') ?>
<!--
<form action="<?php echo url_for('@sf_guard_register') ?>" method="post" accept-charset="utf-8">
  <table>
    <?php //echo $form ?>
    <tfoot>                                           
      <tr>
        <td colspan="2">
          <input type="submit" name="register" value="<?php //echo __('Register', null, 'sf_guard') ?>" />
        </td>
      </tr>
    </tfoot>
  </table>
</form>-->
<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('@sf_guard_register') ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>

  <?php include_partial('main/error', array('form' => $form)) ?>
  <?php if (!$form->getObject()->isNew()): ?>
  <input type="hidden" name="sf_method" value="put" />
  <?php endif; ?>
  
  <table id="register-table">
    <tfoot>
      <tr>
        <td></td>
        <td><table class="register-content">
          <tr>
            <td class="register-title"></td>
            <td>
              <input type="submit" value="Đồng ý" />
              <input type="reset" value="Hủy bỏ"/>
            </td>
          </tr>
        </table></td>
      </tr>
    </tfoot>
    <tbody>
      <tr>
        <td class="register-group"><p>Thông tin cá nhân</p></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td><table class="register-content">
                <tr>
                  <td class="register-title"><p>Họ tên của bạn</p></td>
                  <td><?php echo $form['first_name'] ?></td>
                </tr>
                <tr>
                  <td class="register-title"><p>Ngày sinh</p> </td>
                  <td><?php echo $form['birthday'] ?></td>
                </tr>
                <tr>
                  <td class="register-title"><p>Bạn sống tại</p></td>
                  <td><?php echo $form['province'] ?></td>
                </tr>
        </table></td>
      </tr>
      <tr>
        <td class="register-group"><p>Thông tài khoản</p></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td><table class="register-content">
                <tr>
                  <td class="register-title"><p>Tên đăng nhập<span style="color:red">*</span></p></td>
                  <td><?php echo $form['username'] ?>&nbsp;&nbsp;<span style="color:red">Kiểm tra</span></td>
                </tr>
                <tr>
                  <td class="register-title"><p>Mật khẩu<span style="color:red">*</span></p></td>
                  <td><?php echo $form['password'] ?>&nbsp;&nbsp;<span style="color:red">Bắt buộc</span></td>
                </tr>
                <tr>
                  <td class="register-title"><p>Xác nhận mật khẩu<span style="color:red">*</span></p></td>
                  <td><?php echo $form['password_again'] ?>&nbsp;&nbsp;<span style="color:red">Bắt buộc</span></td>
                </tr>
        </table></td>
      </tr>
      <tr>
        <td class="register-group"><p>Mã kiểm tra</p></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td><table class="register-content">
                <tr>
                  <td class="register-title"><p>Mã kiểm tra</p></td>
                  <td><a href='' onClick='return false' title='Reload image'><img src='/captcha?<?php echo time(); ?>' onClick='this.src="/captcha?r=" + Math.random() + "&amp;reload=1"'></a></td>
                </tr>
                <tr>
                  <td class="register-title"><p>Nhập mã kiểm tra<span style="color:red">*</span></p></td>
                  <td><?php echo $form['captcha']->render(); ?>&nbsp;&nbsp;<span style="color:red">Bắt buộc</span>
                  <?php echo $form['_csrf_token']; ?></td>
                </tr>
                <tr>
                  <td colspan="2" class="register-rule">
                  <p>Bằng việc nhấn vào "Tạo tài khoản" là bạn đồng ý với Thỏa thuận sử dụng Salviafashion</p></td>
                </tr>
        </table></td>
      </tr>
    </tbody>
  </table>
</form>
